package com.qh.book.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/backstage")
public class IndexController {

	//后台首页的框架
	@GetMapping("/index")
	public ModelAndView index() {
		
		return new ModelAndView("index");
	}
	
	//后台首页的右边内容
	@GetMapping("/home")
	public ModelAndView home() {
		//TODO 准备后台首页的数据
		//成交金额
		
		//订单数量
		
		//书籍销售排行榜
		
		//其他数据暂时不处理了
		return new ModelAndView("home");
	}
}
